package com.api.demo.dto.business.order;

import com.api.demo.dto.business.ApiDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @description: Api上传任务交付物DTO
 * @author: yanming
 * @createDate: 2023/06/05 10:07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "Api上传任务交付物DTO")
public class DeliverablesDTO extends ApiDTO {

    @ApiModelProperty(value = "订单ID",required = true)
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    @ApiModelProperty(value = "文件链接或ID",required = true)
    @NotBlank(message = "文件链接或ID不能为空")
    private String file;

    @ApiModelProperty(value = "交付物描述",required = true)
    @NotBlank(message = "交付物描述")
    private String deliverablesDesc;

    @ApiModelProperty(value = "是否是base64")
    private Boolean fileBase64;

    @ApiModelProperty(value = "文件后缀",required = true)
    @NotBlank(message = "文件后缀不能为空")
    private String fileSuffix;



}